Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

name validation should allow nil in the length check by default

#55

Regards to user.rb

  validates_format_of       :name,     :with => Authentication.name_regex,  :message => Authentication.bad_name_message, :allow_nil => true
  validates_length_of       :name,     :maximum => 100

We already allow nil names in the format validation, why not allow nils in the validates_length_of?

This way you can store null values of names in the databases and can also change the migration to do the same thing.

Reported by omarqureshi · June 19th, 2009 @ 04:12 PM

State: new
Milestone: none
Assigned to: mrflip mrflip

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.